package com.scs.application.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.DataEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityIndexAnnotation;
import lombok.Data;

/**
 * <p>
 *
 * </p>
 */
@Data
@TableName("sys_dict_data")
@EntityClassAnnotation(remark = "字典字段表")
@EntityIndexAnnotation(ix = {"value"})
public class DictData extends DataEntity {


    @EntityFieldAnnotation(
        text = "字典ID",
        length = "",
        not_null = true,
        default_value = "",
        comment = ""
    )
    private String dictTypeId;

    @EntityFieldAnnotation(
        text = "字典识别码",
        length = "50",
        not_null = true,
        default_value = "",
        comment = ""
    )
    private String dictTypeCode;

    @EntityFieldAnnotation(
        text = "值",
        length = "20",
        not_null = true,
        default_value = "",
        comment = ""
    )
    private String value;

    @EntityFieldAnnotation(
        text = "标签",
        length = "50",
        not_null = true,
        default_value = "",
        comment = ""
    )
    private String label;

    @EntityFieldAnnotation(
        text = "排序",
        length = "",
        not_null = false,
        default_value = "",
        comment = ""
    )
    private Integer sort;

    @EntityFieldAnnotation(
        text = "颜色。例如：#FFFFFF、blue、rgba(0,0,0,0.5)",
        length = "20",
        not_null = false,
        default_value = "",
        comment = ""
    )
    private String color;


    // 是否禁用
    private Boolean flagDisabled;

}
